package model

// StockCasbinRoleRelationUserModel 结构体
type StockCasbinRoleRelationUserModel struct {
	Id          int        `json:"id,omitempty" gorm:"column:id;isNullable:NO;"`
	RoleId      int        `json:"roleId,omitempty" gorm:"column:role_id;comment:角色ID;isNullable:NO;"`
	UserId      string     `json:"userId,omitempty" gorm:"column:user_id;comment:用户ID;isNullable:NO;size:150;"`
	Status      string     `json:"status,omitempty" gorm:"column:status;comment:状态 Y/N 正常/禁用;default:Y;isNullable:YES;size:10;"`
	CreateTime  *LocalTime `json:"createTime" gorm:"column:create_time;default:CURRENT_TIMESTAMP;isNullable:NO;"`
	LastUpdTime *LocalTime `json:"lastUpdTime" gorm:"column:last_upd_time;default:CURRENT_TIMESTAMP;isNullable:NO;"`
}

func NewStockCasbinRoleRelationUserModel() *StockCasbinRoleRelationUserModel {
	return &StockCasbinRoleRelationUserModel{}
}

// TableName StockCasbinRoleRelationUser 表名
func (a *StockCasbinRoleRelationUserModel) TableName() string {
	return "stock_casbin_role_relation_user"
}
